/**
 * Created by Administrator on 2016/8/18.
 * 房屋所属、房屋类型、街道、小区、幢号、室号、房屋坐落、物业类型、楼层类型、经营业态、建筑面积、套内面积、产别、产权人、
 * 产权人身份证、产权人电话、建成年份、售价标准（租金标准）、总售价（租金总价）
 *      id: 4,
 order: "房屋所属",
 type: "房屋类型",
 street: "街道",
 community: "小区",
 building: "幢号",
 room: "室号",
 area: "房屋坐落",
 property_type: "物业类型",
 floor_type: "楼层类型",
 operation_forms: "经营类型",
 construction_area: "建筑面积",
 inside_area: "套内面积",
 production: "产别",
 right_person: "产权人",
 right_person_id_card: "产权人身份证",
 right_person_tel: "产权人电话",
 built_year: "建成年份",
 standard_price: "标准售价",
 total_price: "总售价"
 */

(function(){
    var id = GetQueryString("id");
    var house_win_name = document.getElementById("titleName");
    var table = document.getElementById("detail-data");

    var i = 0;
    //
            house_win_name.innerHTML = houses[i].order +"的详细信息";
            $("#house_id").val(houses[i].id);
            $("#house_order").val(houses[i].order);
            $("#house_type").val(houses[i].type);
            $("#house_street").val(houses[i].street);
            $("#house_community").val(houses[i].community);
            $("#house_building").val(houses[i].building);
            $("#house_room").val(houses[i].room);
            $("#house_area").val(houses[i].area);
            $("#house_property_type").val(houses[i].property_type);
            $("#house_floor_type").val(houses[i].floor_type);
            $("#house_operation_forms").val(houses[i].operation_forms);
            $("#house_construction_area").val(houses[i].construction_area);
            $("#house_inside_area").val(houses[i].inside_area);
            $("#house_production").val(houses[i].production);
            $("#house_right_person").val(houses[i].right_person);
            $("#house_right_person_id_card").val(houses[i].right_person_id_card);
            $("#house_right_person_tel").val(houses[i].right_person_tel);
            $("#house_built_year").val(houses[i].built_year);
            $("#house_standard_price").val(houses[i].standard_price);
            $("#house_total_price").val(houses[i].total_price);
    //        var tr = document.createElement("tr");
    //        var td = document.createElement("td");
    //        td.innerHTML = "房屋编号：";
    //        var td1 = document.createElement("td");
    //        td1.innerHTML = houses[i].id;
    //        var td2 = document.createElement("td");
    //        td2.innerHTML = "房屋类型：";
    //var td3 = document.createElement("td");
    //td3.innerHTML = houses[i].type;
    //        var td4 = document.createElement("td");
    //        td4.innerHTML = "街道：";
    //var td5 = document.createElement("td");
    //td5.innerHTML = houses[i].street;
    //        var td3 = document.createElement("td");
    //        td3.innerHTML = houses[i].area;
    //        var td4 = document.createElement("td");
    //        td4.innerHTML = houses[i].community;
    //        var td5 = document.createElement("td");
    //        td5.innerHTML = houses[i].construction_area;
    //        var td6 = document.createElement("td");
    //        td6.innerHTML = houses[i].right_person;
    //        var td7 = document.createElement("td");
    //        td7.innerHTML = houses[i].standard_price;
    //        tr.appendChild(td);
    //        tr.appendChild(td1);
    //        tr.appendChild(td2);
    //        tr.appendChild(td3);
    //        tr.appendChild(td4);
    //        tr.appendChild(td5);
    //        tr.appendChild(td6);
    //        tr.appendChild(td7);
    //        table.appendChild(tr);


})();